<?php
if (isset($_POST['op']) && !empty($_POST['op'])){
    if(isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && strtolower($_SERVER["HTTP_X_REQUESTED_WITH"])=="xmlhttprequest"){
    include '../c/config.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    $uid=addslashes(trim($_POST['op']));
    $ids=addslashes(trim($_POST['ids']));

    $mysqli->query("insert into xge_pv(uid,ids,theday,createtime) values('".$uid."','".$ids."','".date("Y-m-d")."','".date("Y-m-d H:i:s")."') ");

 
    $mysqli->close();

    echo 1;
   }
    
}
?>